local items = {
	settingsfile = "RestoreDruids.json",
	callback = GUICallback,
	{ type = "title", text = "奶德 |c0000CED1PvE" },
	{ type = "separator" },	
	{ type = "title", text = "|cFF00FF00团队加血功能|r" },
	{ type = "separator" },
	{ type = "entry", text = "\124T"..select(3, GetSpellInfo(48441))..":26:26\124t  智能回春 HP% <", tooltip = "血量< HP%", enabled = true, value = 95, key = "B_Rejuv" },
	{ type = "entry", text = "\124T"..select(3, GetSpellInfo(53251))..":26:26\124t  智能野性成长 HP% <", tooltip = "血量< HP%", enabled = true, value = 95, key = "A_WildGrowth" },
	{ type = "entry", text = "\124T"..select(3, GetSpellInfo(18562))..":26:26\124t  迅捷治愈 HP% <", tooltip = "血量< HP%", enabled = true, value = 75, key = "Swiftmend"},
	{ type = "entry", text = "\124T"..select(3, GetSpellInfo(48451))..":26:26\124t  生命绽放辅助回蓝", tooltip = "生命绽放辅助回蓝", enabled = true, key = "Lifebloom" },
	{ type = "entry", text = "\124T"..select(3, GetSpellInfo(53251))..":26:26\124t  无脑野性成长", tooltip = "无脑野性成长", enabled = true, key = "WildGrowth" },
	{ type = "entry", text = "\124T"..select(3, GetSpellInfo(48441))..":26:26\124t  无脑回春", tooltip = "无脑回春", enabled = true, key = "A_Rejuv" },
	{ type = "separator" },
	{ type = "title", text = "|cFF00FF00目标焦点加血功能|r" },
	{ type = "separator" },
	--{ type = "entry", text = "\124T"..select(3, GetSpellInfo(20261))..":26:26\124t 智能断条省蓝", tooltip = "智能断条省蓝", enabled = false, key = "StopCasting" },
	{ type = "entry", text = "\124T"..select(3, GetSpellInfo(53251))..":26:26\124t  智能目标野性成长", tooltip = "智能目标加血", enabled = true, key = "TargetHealing1" },
	{ type = "entry", text = "\124T"..select(3, GetSpellInfo(48451))..":26:26\124t  智能目标绽放", tooltip = "智能目标加血", enabled = true, key = "TargetHealing2" },
	{ type = "entry", text = "\124T"..select(3, GetSpellInfo(48441))..":26:26\124t  智能目标回春", tooltip = "智能目标加血", enabled = true, key = "TargetHealing3" },
	{ type = "entry", text = "\124T"..select(3, GetSpellInfo(53251))..":26:26\124t  智能焦点野性成长", tooltip = "智能焦点加血", enabled = true, key = "FocusHealing1" },
	{ type = "entry", text = "\124T"..select(3, GetSpellInfo(48451))..":26:26\124t  智能焦点绽放", tooltip = "智能焦点加血", enabled = true, key = "FocusHealing2" },
	{ type = "entry", text = "\124T"..select(3, GetSpellInfo(48441))..":26:26\124t  智能焦点回春", tooltip = "智能焦点加血", enabled = true, key = "FocusHealing3" },
	{ type = "separator" },
	{ type = "page", number = 1, text = "|cffFFFF00保命功能|r" },
	{ type = "entry", text = "\124T"..select(3, GetSpellInfo(22812))..":26:26\124t  树皮术", tooltip = "树皮术", enabled = true,value=60,  key = "Barkskin" },
	{ type = "entry", text = "\124T"..select(3, GetSpellInfo(27009))..":26:26\124t  自然之握", tooltip = "自然之握", enabled = true, key = "NatureGrasp" },
	{ type = "entry", text = "\124T"..GetItemIcon(36894)..":26:26\124t 使用 治疗石 HP% <", tooltip = "治疗石", enabled = true, value = 60, key = "FelHealthstone" },
	{ type = "page", number = 2, text = "|cFF00FF00驱散功能|r" },
	{ type = "separator" },
	{ type = "entry", text = "\124T"..select(3, GetSpellInfo(2893))..":26:26\124t  驱毒术", tooltip = "驱毒术", enabled = true, key = "AbolishPoison" },
	{ type = "entry", text = "\124T"..select(3, GetSpellInfo(2782))..":26:26\124t  解除诅咒", tooltip = "解除诅咒", enabled = true, key = "RemoveCurse" },
	{ type = "page", number = 3, text = "|cFF00FF00辅助功能|r" },
    { type = "separator" },
	{ type = "entry", text = "\124T"..select(3, GetSpellInfo(33891))..":26:26\124t 生命之树", tooltip = "生命之树", enabled = true, key = "TreeofLife" },
	{ type = "entry", text = "\124T"..select(3, GetSpellInfo(48470))..":26:26\124t  野性赐福", tooltip = "野性赐福", enabled = true, key = "GiftoftheWild" },
	{ type = "entry", text = "\124T"..select(3, GetSpellInfo(29166))..":26:26\124t  激活", tooltip = "有效目标给目标，无效目标给自己", enabled = true, value = 65, key = "Inervate" },
	{ type = "entry", text = "\124T"..select(3, GetSpellInfo(50763))..":26:26\124t  起死回生", tooltip = "起死回生", enabled = true, key = "Revive" },
	{ type = "entry", text = "\124T"..select(3, GetSpellInfo(48477))..":26:26\124t  复生", tooltip = "1对目标使用，2自动使用", enabled = true, value = 1, key = "Rebirth" },
	{ type = "entry", text = "\124T"..select(3, GetSpellInfo(51306))..":26:26\124t  调试", tooltip = "显示调试信息", enabled = false, key = "debug" },
	
};
 
local function GetSetting(name)
    for k, v in ipairs(items) do
        if v.type == "entry"
         and v.key ~= nil
         and v.key == name then
            return v.value, v.enabled
        end
    end
end;

local function OnLoad()
	ni.GUI.AddFrame("RestoreDruids", items);
end;

local function OnUnLoad()  
	ni.GUI.DestroyFrame("RestoreDruids");
end;

local spells = {
	--Cat
		CatForm = { id = 768, name = GetSpellInfo(768)},  --猎豹形态
		Manglecat = { id = 48566, name = GetSpellInfo(48566)},  --裂伤（豹）
		Rip = { id = 49800, name = GetSpellInfo(49800)},  --割裂
		Rake = { id = 48574, name = GetSpellInfo(48574)},  --斜掠
		SavageRoar = { id = 52610, name = GetSpellInfo(52610)},  --野蛮咆哮
		Prowl = { id = 5215, name = GetSpellInfo(5215)},  --潜行
		TigersFury = { id = 50213, name = GetSpellInfo(50213)},  --猛虎之怒
		Maim = { id = 49802, name = GetSpellInfo(49802)},  --割碎
		InstantCast = { id = 69369, name = GetSpellInfo(69369)},  --掠食者的迅捷
		FerociusBite = { id = 48577, name = GetSpellInfo(48577)},  --凶猛撕咬
		Pounce = { id = 49803, name = GetSpellInfo(49803)},  --突袭
		FaerieFire = { id = 16857, name = GetSpellInfo(16857)},  --精灵之火（野性）
		Shred = { id = 48572, name = GetSpellInfo(48572)},  --撕碎
		SurvivalInstinct = { id = 61336, name = GetSpellInfo(61336)},  --生存本能
		Barkskin = { id = 22812, name = GetSpellInfo(22812)},  --树皮术
		Berserk = { id = 50334, name = GetSpellInfo(50334)},  --狂暴
		--Bear
		BearForm = { id = 9634, name = GetSpellInfo(9634)},  --巨熊形态
		MangleBear = { id = 48564, name = GetSpellInfo(48564)},  --裂伤（熊）
		Maul = { id = 48480, name = GetSpellInfo(48480)},  --重殴
		Lacerate = { id = 48568, name = GetSpellInfo(48568)},  --割伤
		Demoralazing = { id = 48560, name = GetSpellInfo(48560)},  --挫志咆哮
		Enrage = { id = 5229, name = GetSpellInfo(5229)},  --激怒
		FrenziedRegeneration = { id = 22842, name = GetSpellInfo(22842)},  --狂暴回复
		Charge = { id = 16979, name = GetSpellInfo(16979)},  --野性冲锋 - 熊
		Bash = { id = 8983, name = GetSpellInfo(8983)},  --猛击
		SwipeBear = { id = 48562, name = GetSpellInfo(48562)},  --横扫（熊）
		-- Resto
		Rejuv = { id = 48441, name = GetSpellInfo(48441)},  --回春术
		WildGrowth = { id = 53251, name = GetSpellInfo(53251)},  --野性成长
		Lifebloom = { id = 48451, name = GetSpellInfo(48451)},  --生命绽放
		Swiftmend = { id = 18562, name = GetSpellInfo(18562)},  --迅捷治愈
		NaturesSwiftness = { id = 17116, name = GetSpellInfo(17116)},  --自然迅捷
		Regrowth = { id = 48443, name = GetSpellInfo(48443)},  --愈合
		Nourish = { id = 50464, name = GetSpellInfo(50464)},  --滋养
		HealingTouch = { id = 48378, name = GetSpellInfo(48378)},  --治疗之触
		MarkoftheWild = { id = 48469, name = GetSpellInfo(48469)},  --野性赐福
		GiftoftheWild = { id = 48470, name = GetSpellInfo(48470)},  --野性赐福
		Thorns = { id = 26992, name = GetSpellInfo(26992)},  --荆棘术
		AbolishPoison = { id = 2893, name = GetSpellInfo(2893)},  --驱毒术
		RemoveCurse = { id = 2782, name = GetSpellInfo(2782)},  --解除诅咒
		Tranquility = { id = 48447, name = GetSpellInfo(48447)},  --宁静
		Revive = { id = 50763, name = GetSpellInfo(50763)},  --起死回生
		Rebirth = { id = 48477, name = GetSpellInfo(48477)},  --复生
		TreeofLife = { id = 33891, name = GetSpellInfo(33891)},  --生命之树
		-- Balance
		Moonfire = { id = 8921, name = GetSpellInfo(8921)},  --月火术
		Inervate = { id = 29166, name = GetSpellInfo(29166)},  --激活
		Roots = { id = 26989, name = GetSpellInfo(26989)},  --纠缠根须
		Cyclone = { id = 33786, name = GetSpellInfo(33786)},  --旋风
		SoothePet = { id = 26995, name = GetSpellInfo(26995)},  --安抚动物
		Hibernate = { id = 18658, name = GetSpellInfo(18658)},  --休眠
		ClearCast = { id = 16870, name = GetSpellInfo(16870)},  --节能施法
		NatureGrasp = { id = 27009, name = GetSpellInfo(27009)},  --自然之握
};

 
local Cache = {
    zjzz = zjzz or UnitRace("player") 
}

local queue = {
	"Cache",
	"Pause",
	"AutoTarget",
	"Fel Healthstone",
	"Inervate", --激活
	"GiftoftheWild", --野性赐福
	"Barkskin", --树皮术
	"NatureGrasp",  --自然之握 --Tranquility = { id = 48447, name = GetSpellInfo(48447), icon = select(3, GetSpellInfo(48447)) },  --宁静
	"AbolishPoison", --驱毒术
	"RemoveCurse",--解除诅咒
	"Revive", --起死回生
	"Rebirth", --复生
	"TreeofLife", --生命之树
	"B_Rejuv",  --按血量铺回春
	"A_WildGrowth",--按血量放野性成长
	"A_Rejuv",  --无脑回春
	"Swiftmend", --迅捷治愈
	"Nourish",  --滋养
	"Lifebloom", --生命绽放回蓝
	"TargetHealing1",
	"TargetHealing2",
	"TargetHealing3",
	"FocusHealing1",
	"FocusHealing2",
	"FocusHealing3",
	"WildGrowth",
	"Lifebloom", --生命绽放
	"Nourish",  --滋养
	"debug",
	
};

local delaytime = 0

local function Tank(t)
	if ni.unit.aura(t, 9634)
    or ni.unit.aura(t, 48263)
	or ni.unit.aura(t, 71)
    or ni.unit.aura(t, 25780) then
		return true
	end
	return false
end

 local function ValidUsable(id, tar)
	if ni.spell.available(id) and ni.spell.valid(tar, id, false, true,true) then
		return true
	end
	return false
 end

	
local abilities = {
	["Cache"] = function()	
			tgzlmb = ""  if UnitCanAttack("player", "target") then tgzlmb = "targettarget" else  tgzlmb = "target" end
			fczlmb = ""  if UnitCanAttack("player", "focus") then fczlmb = "focustarget" else  fczlmb = "focus" end
		    DnaiD = DnaiD or CreateFrame("frame","DnaiD")      
            DnaiD:RegisterEvent("UNIT_SPELLCAST_SENT")     
            DnaiD:SetScript("OnEvent", function(_,_,a,b,_,c)     
            if a=="player" then
                if b=="激活" then 
				jhmb=c
				print("激活目标保存为》》》》》》"..c)
				end
                if b=="滋养" then
				zlmb=c
				print("正在为》》》"..c.."《《《预读滋养")
				end      
                if b=="复生" then 
				hdmb=c
				print("复生目标》》》》》》"..c)
				end 
                DnaiD:UnregisterEvent("UNIT_SPELLCAST_SUCCEEDED")  end  end)   
			 jhunit = jhunit or jhmb or "player"
	end,

	["Pause"] = function()     --停止条件
		if IsMounted()
			or UnitIsDeadOrGhost("player")
			or ni.player.iscasting()
			or ni.player.ischanneling() then
			return true
		end
	end,

	["AutoTarget"] = function()    --自动目标
	local _, enabled = GetSetting("AutoTarget")
		if enabled then
		  if UnitAffectingCombat("player") 
		    and not ni.unit.exists("target")  then
			ni.player.runtext("/startattack")
			return true
		  end
		end
	end,

	["Inervate"] = function()  --自动激活目标
	local value, enabled = GetSetting("Inervate")
		if enabled then
		   if ni.unit.power(jhunit) <= value
		   and ValidUsable(spells.Inervate.id,jhunit)
	       then
		   return ni.spell.cast(spells.Inervate.name,jhunit)
	       end
	    end
	end,

	["TreeofLife"] = function()    --生命之树
	local _, enabled = GetSetting("TreeofLife")
	  if enabled then
	     if not ni.player.aura(spells.TreeofLife.id) 
		    and ni.spell.available(spells.TreeofLife.id)
		 then
		   ni.spell.cast(spells.TreeofLife.name) return true 
		 end
	  end
	end,

	["GiftoftheWild"] = function()    --野性赐福
	local _, enabled = GetSetting("GiftoftheWild")
	  if enabled then
	   if not ni.player.buffs("48469||48470") and ValidUsable(spells.MarkoftheWild.id,"player") then
	      if ni.player.hasitem(44605) then
		     ni.spell.cast(spells.GiftoftheWild.name) return true 
	      else ni.spell.cast(spells.MarkoftheWild.name) return true  
	      end
       end
	  end
	end,

	["Barkskin"] = function()  --树皮术
	local value, enabled = GetSetting("Barkskin")
		if enabled then
		   if  UnitAffectingCombat("player")
			and ni.spell.available(spells.Barkskin.id)
			and ni.player.hp() <= value then
				ni.spell.cast(spells.Barkskin.name) return true
		   end
		end 
	end,

	["NatureGrasp"] = function()  --自然之握
	local _, enabled = GetSetting("NatureGrasp")
		if enabled then
		   if ni.player.threat() >= 2
		      and ni.spell.available(spells.NatureGrasp.id)
			 then
				ni.spell.cast(spells.NatureGrasp.name) return true
		   end
		end
	end,

	["Rebirth"] = function()  --战复,1对目标使用，2自动使用
        local value, enabled = GetSetting("Rebirth")
        if enabled then
		   if ni.spell.available(spells.Rebirth.id)
		      and UnitAffectingCombat("player")
		   then
              if value == 2 then
                 for _, ally in ipairs(ni.members) do
                    if UnitIsDead(ally.unit) 
					   and ni.spell.valid(ally.unit, spells.Rebirth.id, false, true, true)
				    then
                       ni.spell.cast(spells.Rebirth.name, ally.unit) return true
                    end
                 end
              end
              if  value == 1 then
                 if UnitIsDead("target") 
				    and ni.spell.valid("target", spells.Rebirth.id, false, true, true)
				 then
                    ni.spell.cast(spells.Rebirth.name, "target") return true
                 end
              end
            end
        end
	end,

	["Revive"] = function()  --起死回生
       local _, enabled = GetSetting("Revive")
       if enabled then
	      if  not UnitAffectingCombat("player") 
	          and ni.spell.available(spells.Revive.id)
          then
			   if UnitIsDead("target") 
			      and ni.spell.valid("target", spells.Rebirth.id, false, true, true)
				  then
                   ni.spell.delaycast(spells.Revive.name, "target",10) return true
			   end
               for _, ally in ipairs(ni.members) do
                    if UnitIsDead(ally.unit) and ni.spell.valid(ally.unit, spells.Revive.id, false, true, true) then
                       ni.spell.delaycast(spells.Revive.name, ally.unit,10)  return true
                    end
               end
		  end
       end
	end,
       
	["RemoveCurse"] = function()   --解除诅咒
    local _, enabled = GetSetting("RemoveCurse") 
        if enabled then
           for _, ally in ipairs(ni.members) do
               if ni.unit.debufftype(ally.unit, "Curse") 
				  and ValidUsable(spells.RemoveCurse.id,ally.unit)
				  then
                  ni.spell.cast(spells.RemoveCurse.name, ally.unit) return true
               end
            end

        end
	end,

	["AbolishPoison"] = function()  --驱毒术
        local _,enabled = GetSetting("AbolishPoison")
        if enabled then
           for _, ally in ipairs(ni.members) do
               if ni.unit.debufftype(ally.unit, "Poison")
			      and not ni.unit.buff(ally.unit, spells.AbolishPoison.id)
                  and ValidUsable(spells.AbolishPoison.id,ally.unit)
				  then
                  ni.spell.delaycast(spells.AbolishPoison.name, ally.unit, 2)  return true
               end
           end
        end
	end,
	
	--[[
	["StopCasting"] = function()  --自动断条省蓝
	local _, enabled = GetSetting("StopCasting")
		if enabled then
		    local sysj,sfsj,jnmz = UnitCastSpellTime("player") 
            local dxcc = zlmb 
		    local Jdxl = ni.unit.hp(dbmb)
            if sysj <0  then zlmb=0 
            elseif StringFind("圣光术,圣光闪现",jnmz) then
			    local dxmz = ni.unit.hp(zlmb)
                if sysj<0.2 and Jdxl>=100  and dxmz >=100 then ni.spell.stopcasting() return true                   
                end
            end
        end
    end,
	]]--

	["Fel Healthstone"] = function()  --治疗石
	local value, enabled = GetSetting("FelHealthstone")
		if enabled then
		   if UnitAffectingCombat("player")
			  and ni.player.hp() <= value
			  and ni.player.itemready(spells.FelHealthstone.id) 
			  then
				ni.player.useitem(spells.FelHealthstone.name)
			  return true;
		   end
		end
	end,

	["B_Rejuv"] = function()	 --按血量铺回春
	local value, enabled = GetSetting("B_Rejuv")
        if enabled then
           for _, ally in ipairs(ni.members) do
               if not ni.unit.buff(ally.unit,48441,"player")
			   and ni.unit.hp(ally.unit) <= value
			   and ValidUsable(spells.Rejuv.id,ally.unit)
			   then
			       ni.spell.cast(spells.Rejuv.name, ally.unit) return  true
			   end
		   end
	    end
    end,

	["Swiftmend"] = function()	 --迅捷治愈
	local value, enabled = GetSetting("Swiftmend")
        if enabled then
           for _, ally in ipairs(ni.members) do
               if  ni.unit.buffs(ally.unit,"48443||48441")
			   and ni.unit.hp(ally.unit) <= value
			   and ValidUsable(spells.Swiftmend.id,ally.unit)
			   then
			      return ni.spell.cast(spells.Swiftmend.name, ally.unit) return true
			   end
		   end
	    end
    end,

	["Nourish"] = function()  --滋养
	local value, enabled = GetSetting("Nourish")  
        if enabled then
           for _, ally in ipairs(ni.members) do
                  if ni.unit.hp(ally.unit) <= value 
				  and ni.player.buffs("16870 || 17116") 
				  and ValidUsable(spells.Nourish.id,ally.unit)
				  then
					    ni.spell.cast(spells.Nourish.name, ally.unit) return true 
				  end
		   end
		end
    end,

	["Lifebloom"] = function()	 --生命绽放回蓝
	local _, enabled = GetSetting("Lifebloom")
        if enabled then
           for _, ally in ipairs(ni.members) do
                  if ni.player.buff(17116) 
				     and not ni.unit.buff(ally.unit,48451,"player") 
				     and ValidUsable(spells.Lifebloom.id,ally.unit)
				  then
					   ni.spell.cast(spells.Lifebloom.name, ally.unit) return true 
				  end
		   end
		end
    end,

	["A_WildGrowth"] = function()	 --按血量放野性成长
	local value, enabled = GetSetting("A_WildGrowth")
        if enabled then
           for _, ally in ipairs(ni.members) do
               if not ni.unit.buff(ally.unit,spells.WildGrowth.id,"player")    
			   and ni.unit.hp(ally.unit) <= value
			   and ValidUsable(spells.WildGrowth.id,ally.unit)
			   then
			       ni.spell.cast(spells.WildGrowth.name, ally.unit)   return true
			   end
		   end
	    end
    end,

	["WildGrowth"] = function()	 --无脑野性成长
	local _, enabled = GetSetting("WildGrowth")
        if enabled then
           for _, ally in ipairs(ni.members) do
               if not ni.unit.buff(ally.unit,spells.WildGrowth.id,"player") 
			      and ValidUsable(spells.WildGrowth.id,ally.unit)
			   then
			      ni.spell.cast(spells.WildGrowth.name, ally.unit) return true
			   end
		   end
	    end
    end,

	["A_Rejuv"] = function()	 --无脑回春术
	local _, enabled = GetSetting("A_Rejuv")
        if enabled then
           for _, ally in ipairs(ni.members) do
               if not ni.unit.buff(ally.unit,48441,"player")
			   and ValidUsable(spells.Rejuv.id,ally.unit)
			   then
			      ni.spell.cast(spells.Rejuv.name, ally.unit)   return true
			   end
		   end
	    end
    end,

	["TargetHealing1"] = function()	 --自动目标野性成长
	local _, enabled = GetSetting("TargetHealing1")
	  if enabled then
	    if not ni.unit.buff(tgzlmb,spells.WildGrowth.id,"player") 
	        and ValidUsable(spells.WildGrowth.id,tgzlmb)  
	       then ni.spell.cast(spells.WildGrowth.name,tgzlmb) return true
	    end
	  end
    end,

	["TargetHealing2"] = function()	 --自动目标绽放
	local _, enabled = GetSetting("TargetHealing2")
	  if enabled then
	    if not ni.unit.buffstacks(tgzlmb,spells.Lifebloom.id)<3 
	     and ValidUsable(spells.Lifebloom.id,tgzlmb)
	     and Tank(tgzlmb) then 
		 ni.spell.cast(spells.Lifebloom.name,tgzlmb) return true
	    end
	  end
    end,

	["TargetHealing3"] = function()	 --自动目标回春
	local _, enabled = GetSetting("TargetHealing3")
	  if enabled then
	     if not ni.unit.buff(tgzlmb,spells.Rejuv.id,"player") 
	        and ValidUsable(spells.Rejuv.id,tgzlmb)
	     then ni.spell.cast(spells.Rejuv.name,tgzlmb) return true
		 end
	  end
    end,

	["FocusHealing1"] = function()	 --自动焦点野性成长
	local _, enabled = GetSetting("FocusHealing1")
      if enabled then
	     if not ni.unit.buff(fczlmb,spells.WildGrowth.id,"player") 
	        and ValidUsable(spells.WildGrowth.id,fczlmb) 
	     then ni.spell.cast(spells.WildGrowth.name,fczlmb) return true
		 end
	  end
    end,

	["FocusHealing2"] = function()	 --自动焦点绽放
	local _, enabled = GetSetting("FocusHealing2")
       if enabled then
		   if not ni.unit.buffstacks(fczlmb,spells.Lifebloom.id)<3 
	          and ValidUsable(spells.Lifebloom.id,fczlmb)
	          and Tank(fczlmb) 
		   then 
		      ni.spell.cast(spells.Lifebloom.name,fczlmb) return true
		   end
	   end
    end,

	["FocusHealing3"] = function()	 --自动焦点回春
	local _, enabled = GetSetting("FocusHealing3")
       if enabled then
		 if not ni.unit.buff(fczlmb,spells.Rejuv.id,"player") 
	       and ValidUsable(spells.Rejuv.id,fczlmb)
	     then ni.spell.cast(spells.Rejuv.name,fczlmb)  return true
		 end
	   end
    end,

	["debug"] = function()  --调试
	local _, enabled = GetSetting("debug")
		if enabled then
		     ni.vars.debug = true
		else
             ni.vars.debug = false
		end
	end,



};
ni.bootstrap.profile("RestoreDruids", queue, abilities, OnLoad, OnUnLoad);	
